vim.opt.termguicolors = true
require('bufferline').setup {
    highlights = {
        buffer_selected = {
                            -- 设置当前buffer
            fg = '#FFC0CB', -- 设置前景色
            bold = true,
            italic = true,
        },
        -- 设置当前buffer下划线颜色
        indicator_selected = {
            fg = '#FFB6C1',
        }
    },

    options = {
        numbers = function(opts)
            return string.format('%s', opts.ordinal)
        end,
        diagnostics = false,
        show_buffer_close_icons = false,
        show_close_icon = false,
        max_name_length = 80,
        indicator = { -- 设置当前buffer显示下划线
            style = 'underline',
        },
        offsets =
        {
            {
                filetype = "NvimTree",
                text = "File Explorer",
                highlight = "Directory",
                -- separator = true, -- use a "true" to enable the default, or set your own character
                -- test_align = "right",
                separator = true
            },
        }
    },
}

require('winbar').setup({
    enabled = false, -- 是否启动winbar

    show_file_path = true, -- 是否显示文件路径
    show_symbols = false, -- 是否显示函数标签

    -- 颜色配置，为空，将使用默认配色
    colors = {
        path = '', -- 路径的颜色，比如#ababab
        file_name = '', -- 文件名称的颜色，比如#acacac
        symbols = '',  -- 函数颜色
    },

    -- 图标配置
    icons = {
        seperator = '>', -- 路径分割符号
        editor_state = '●',
        lock_icon = '',
    },

    -- 关闭winbar的窗口
    exclude_filetype = {
        'help',
        'startify',
        'dashboard',
        'packer',
        'neogitstatus',
        'NvimTree',
        'Trouble',
        'alpha',
        'lir',
        'Outline',
        'spectre_panel',
        'toggleterm',
        'qf',
    }
})


